/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package service.system;

import java.util.List;
import model.system.Policy;
import model.system.SystemGroupAccess;
import model.system.SystemMenu;

/**
 *
 * @author Yusup Jauhari Shandi <in.visi>
 */
public interface SystemGroupAccessService {
     boolean save(List<SystemGroupAccess> systemGroupAccess);
    boolean delete(SystemGroupAccess systemGroupAccess);
    SystemGroupAccess getAccessByMenuAndGroupId(int menuId, int groupId);
    Policy allowAccess(int menuId, int groupId);
    SystemGroupAccess getSystemGroupAccess(int id);
    SystemGroupAccess getSystemGroupAccess(String kode);
    List<SystemGroupAccess> getSystemGroupAccess();
    List<SystemMenu> getSystemMenu();
    List<SystemGroupAccess> getSystemGroupAccess(int start, int num);
    List<SystemGroupAccess> getAll(int start, int num, String params, String orderBy);    
}
